<template>
<div class="com-container" style="margin: 25px auto;width: 60%" >
  <el-descriptions title="基础信息" :column="1" border v-model="user">
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-collection-tag"></i>学号</template>
      {{user.number}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-user"></i>新生姓名</template>
      {{user.name}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-user"></i>性别</template>
      {{user.sex}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-user"></i>民族</template>
      {{user.nation}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-date"></i>入学年份</template>
      {{user.admissionyear}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-school"></i>学院</template>
      {{user.academy}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-school"></i>录取专业</template>
      {{user.major}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-s-flag"></i>班级</template>
      {{user.aclass}}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label"><i class="el-icon-position"></i>招生省份</template>
      {{user.province}}
    </el-descriptions-item>
  </el-descriptions>
</div>
</template>

<script>

export default {
  name: "BasicInfo",
  data() {
    return {
      user: localStorage.getItem("user") ?
          JSON.parse(localStorage.getItem("user")) : {},
    }
  },
  methods: {}
}
</script>

<style scoped>

</style>